package com.bluemsun.naturallanguageprocessing.controller;

import com.bluemsun.naturallanguageprocessing.common.ServerResponse;
import com.bluemsun.naturallanguageprocessing.tools.QuestionTag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private QuestionTag questionTag;
    @RequestMapping("/setQuestionTags")
    public ServerResponse<Object> setQuestionTags(){
        try{
            questionTag.setQuestionTags();
        }catch (Exception e){
            return ServerResponse.createByErrorMessage(e.getMessage());
        }
        return ServerResponse.createBySuccessMessage("setQuestionTags执行成功");
    }
}
